import 'package:get/get.dart';
import 'package:kkhousekeep/models/house_authentication_list_entity.dart';
import 'package:kkhousekeep/net/me_connect.dart';

class HouseNotificationController extends GetxController {
  var houseNotificationList = <HouseAuthenticationListObjList>[].obs;
  late MeConnect _meConnect;

  @override
  void onInit() {
    _meConnect = Get.find<MeConnect>();
    super.onInit();
    _loadNetworkData();
  }

  _loadNetworkData() async {
    houseNotificationList.value =
        await _meConnect.getHouseAuthNotificationList();
  }
}
